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.

This commit replaces toAscii() by the modern toLatin1() method of the QString class