use utf8; # $string being your string with wicked chars utf8::decode($string);