Replaced deprecated string function

.toAscii() is deprecated (and broke my build). See Qt docs.
Merge pull request #142 from 4ZM/master

Replaced deprecated string function