mashery/iodocs — pull request #192 by bachwehbi (2014-07-15 08:40:59+00:00)
Title: Fix content length for non ASCII (e.g. UTF8) characters

The Content-Length header should indicate the length in number of bytes not in number of characters.
Replace String.length by Buffer.byteLength(String)

"é".length is 1
Buffer.byteLength("é") is 2