Serialize chunks for communication