Convert UTF-8 strings to any encoding supported by XML::Encoding