Added ability to override Accept-encoding header values #654. Proposed by Tal Liron.