Encode & decode charsets on C side (fix Haskell side)
Initialize C components, including vendored CMP