tr/\0-\xFF//CU; # change Latin-1 to Unicode tr/\0-\x{FF}//UC; # change Unicode to Latin-1