Using a String for zlib decoder/encoder output doesn't work because it can only hold valid utf8. Read into a Vec<u8> instead and construct a lua string from it.