Use QString::fromWCharArray instead of QString::fromUtf8

On gcc a standard c-style string can actually handle utf-8 character
codepoints whereas on MSVC we have to explicitly use a wchar array.
Refs #9252