Workaround for https://bugs.ruby-lang.org/issues/8182

This sets the HTTP Accept-Encoding header to a permissive setting that works around the bug in ruby 2.x documented here:

 https://bugs.ruby-lang.org/issues/8182