Fix content-length calculation

Use String::bytesize instead of String::length for the content-length
header.

[#80456142]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>