Fix bug with content length header, use UTF 8 bytes instead of string length