Added support for UTF8 string length.