Encode to UTF.