Content length should be based on the byte size of the content rather than the string length.