support for Qt 5

Qt 5 no longer allow toAscii() methods