Fix Zlib::BufError

**READY FOR REVIEW**

From [Zlib's FAQ](http://www.zlib.net/zlib_faq.html#faq04), only `compress()`, `deflate()` and `inflate()` can raise a `Z_BUF_ERROR` (_Zlib::BufError_).