fix for encoding issue

Adds a check for "Accept-Encoding" header, replaces header with "Accept-Encoding: none" if exists.