Perl’s two types of strings 

my $bytes = <$fh>;
my $characters = Encode::decode('UTF-8', $bytes);

$bytes = Encode::encode('UTF-8', $characters);