Add gzip header check. Closes GH-6

Based on @kmpm's commit at kmpm/nbt-js@d4675211b28c489dcd9759bc229bd7fc1efa4c24

GH-6