Changed the use of the deprecated QString::fromAscii/toAscii to fromLatin1/toLatin1.