use GLib.convert for text encoding.