Wizcorp/node-pivotal — pull request #28 by fpt (2013-10-22 06:07:06+00:00)
Title: fixed content-length in case data contain multi-byte characters

Calling addStory with data containing multi-byte characters (e.g. Japanese) fails in HTTP 400 status.
String.length is not preferable because it does not match encoded length in bytes in those cases.

Please refer to this question for more information.
http://stackoverflow.com/questions/9864662/how-to-get-the-string-length-in-bytes-in-nodejs