sig type text val decode : CharEncoding.t -> string -> CharEncoding.Type.text val encode : CharEncoding.t -> CharEncoding.Type.text -> string end