Use fromLatin1 and toLatin1 between QByteArray and QString