Fix content length for non ASCII (e.g. UTF8)

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