Fix for toUtf8(): QByteArray returned is temporary
The regression was introduced with a13a7350. The function toUtf8() returns a temporary array and gets destroyed with the call of constData(). So it produces a dangling pointer with (more or less) random content. A solution is presented here.
Edited by Toni Schriber