The attached patch converts the given string to UTF-8 using glib's