Fix partial reading of chunk payloads and serialization of sent chunks in win32