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