check for HTTP_ACCEPT_ENCODING before using it