content-length counts bytes, not characters
Merge branch 'content-length-in-bytes' into devel

Fixes #980