Thanks for the bug report and proposed fix. I installed the attached, which should fix the gzip bug in a different way. I think the bug is innocuous in practice, but it's good to fix it anyway as these things tend to mushroom.