joyent/node — pull request #5816 by rustyconover (2013-07-08 22:44:09+00:00)
Title: http: fix chunk length calculation when using a custom encoding

Fix the calculation of http chunk length when writing a string with an encoding.

Added test.

Fixes issue #5777.