use Unicode::String; Unicode::String->stringify_as('utf8'); $text = Unicode::String::latin1($text);