Fixed: Calculation of multi-byte string length.