Added gzip support to Writer.