Fixed compilation with Qt5

There is no more toAscii in Qt5, toLatin1 means same
see https://bugreports.qt-project.org/browse/QTBUG-21872