brianloveswords/node-htmlsanitizer — pull request #2 by Pomax (2013-04-12 15:14:03+00:00)
Title: Switched json.length to Buffer.byteLength(json,'utf8')

This fixes a problem for sanitizing when there is multi-byte unicode content in the data. json.length will count "letters", rather than bytes, so Content-Length was able to be lower than the actual number of bytes transmitted.