Chunk: Fix chunk serialization.