fix bug in header encoding, clean codeconv for glib2