Fix regression of introducing UnicodeString.
Initial iteration on updating DOM selection.