fixed wrong content-length in case data contain multi-byte characters