null safe comparison check for encoding.
updated gzip encoding to be static string.