for Qt5

qt 5 does not have toAscii()