Removed broken Content-Encoding header

Updated version of PR #7 for version 4.0.