Set Content-Length correctly in examples

It should be set to the number of bytes, not the number of characters in the JS string.