changing deprecated QString conversion to ASCII (toAscii --> toLatin1)