Added code to encode the data for a chunk.  Now to send it to the client!