Apply ihis patch to WWW::Mechanize.pm to stop the "UTF-8" warnings. (tested on WWW::Mechanize 1.34) The following command should do it. Might need to run it as root. cd /path/to/perl/lib/ ; patch 'none' because while we want LWP to handle Content-Encoding for - # the auto-gzipping with Compress::Zlib we don't want it messing with charset - my $content = $res->decoded_content( charset => 'none' ); + my $content = $res->decoded_content; $content = $res->content if (not defined $content); $content .= _taintedness();