https://wp.jochen.hayek.name/blog-en/2014/02/26/perl-encode-different-checks-unexpected-result/
Perl's Encode.pm: calling encode differently on the same encoding handle does not yield the expected result