Added convenience methods to DtoIo for compressing (gz) the data.