newline is a QString. Assigning the return type of codec->fromUnicode()
which is a QByteArray invokes the fromUtf8 conversion. Which is the wrong
encoding, as the returned QByteArray does not hold the string in UTF-8
but the very encoding of the used coded.