[#736] Trim accept encoding fields before checking for gzip