Fix content-length calculation

* Use String::bytesize instead of String::length for the content-length
  header.
* Bump gem version to 4.0.2

[#80456142]

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