Fix extra CRLF bug in sendBodyChunked.

This regression bug is introduced in commit 8d5e2c7.
Also add test case for this bug.