PerlIO::utf8_strict provides a fast and correct UTF-8 PerlIO layer. Unlike perl's default :utf8 layer it checks the input for correctness. WWW: https://metacpan.org/release/PerlIO-utf8_strict