Grapheme count (or rather, indexing) is necessary to do text selection or cursor positions.
Fortunately you can usually outsource this to a UI toolkit which can do it.