Java: set encoding to gzip if not set by response

proposed fix for #125

I thought this was taken care by the previous pull request #114 by setting all headers from response, but some responses don't contain the encoding in the header for some reason, this should make sure.