Corrects Accept-Encoding header. 

Props @daniloercoli.
Fixes #1212