Handle accepted encoding in curl correct

Curl needs the accepted encoding header set as curl option and not only as header.