rem: return QString::fromUtf8( val.data(), val.size() - 1 );
add: const char *data = val.data();  if ( data[ val.size() - 1 ] == '\0' ) return QString::fromUtf8( data, val.size() - 1 ); else return QString::fromUtf8( data, val.size() );
context: inline static QString asUtf8( const QByteArray &val ){  return QString::fromUtf8( val.data(), val.size() - 1 );}