correct bytelength for Content-Length
Merge pull request #2 from Pomax/master

Switched json.length to Buffer.byteLength(json,'utf8')