Bug fix to gzipSupport method to handle encoding being explicitly null.