Fix encoding issue that causes test failures on Perl 5.17.