Fix agent_v2 chunked encoding transmission.