Correction for UTF-8 strings.
Add a test for UTF-8 strings.