Handle chunked encoding properly in tool-proxy