[#4555] Do not double-decode gzipped responses via cURL

- cURL's CURLOPT_ENCODING setting can allow auto-decoding a response.
  Detect if set appropriately, and, if so, strip the Content-Encoding
  header in the response.
Merge branch 'hotfix/4555'

Close #4555