Add a chunks_to_gzip function. This allows the _record_to_data code to build up a list of chunks, rather than requiring a single string. It should be ~ the same performance when using a single string, since we are only adding a for() loop over the chunks and an if check. We could possibly just remove the if check and not worry about adding some empty strings in there.