Improve gzip decoding for the Stream client