Fix formatting in wine output window with Python 3.x

For Python3, we need to explicitly pass encoding when
converting QByteArray to str, otherwise we get it
as Python syntax binary string.