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