fix bug in chunked encoding; output to reply.sout() must be routed through chunked encoder