Improved invalid utf8 encoding error - g_get_charset() is now also reported.