Use UTF8 (byte)length instead of character length.
Add the util test to OSX Tests as well.
Merge pull request #613 from realm/lr-os-fixing-utf-8

Use UTF8 (byte)length instead of character length.