fixing static initialization in Http.Encodings test
fixing potential memory leak when gzip fails
more defensive errno handling for strtod