Adding Accept-Encoding header now sets CURLOPT_ENCODING - fixes #217

This fixes the issue I reported. Includes test case.