Fixed Gzip codec + added specs
Declare encoding as UTF-8 for Ruby <2.0