In Qt5 toAscii() no longer exists; this commit replaces it with toLatin1 method

In Qt5 toAscii() no longer exists; this commit defines the toAscii macro at the beginning of each file and replaces it with the toLatin1 method