Qt5 compatibility fix

QString::toAscii() method is removed in Qt5