Fixed issue converting QStrings to TCHAR pointers.

Possibly related to encoding - was getting corrupt chars when using (TCHAR*)QString::utf16() - switched to use toWCharArray() and added a null terminator (which is not added by toWCharArray()).