The best thing to do would be to backport the upstream patch that makes Bugzilla use File::Slurper (which doesn't have the issue) instead of File::Slurp.