Fixing a bug when the client doesn't send the Accept-Encoding header