Charset conversion library and utility