Added functions to convert GError messages (which are in UTF-8 charset)