Replaced deprecated string function

.toAscii() is deprecated (and broke my build). See Qt docs.