Calculate Content-Length using bytesize to support multibyte chars

Fix #43