Handle gzip file properly.