Calculates Content-Length in bytes instead of characters

Calculating `Content-Length` using the simple `.length` property gives the content's length in characters, which in the presence of any multi-byte characters isn't the correct way to specify `Content-Length`; this leads to truncated output of files containing multi-byte chars. This changeset ensures that `Content-Length` is calculated in bytes, using `Buffer.byteLength`.