Use QString::toLatin1() instead of QString::toAscii()