Fix content length for utf8 encoding.