Fix compile errors with QJson

These two files are still using the old qjson parser and need to be
updated to the new Qt5 QJson format.

@macumber FYI

Also toAscii() was deprecated and removed in Qt5, now toLatin1() is
used instead.