Correct selecting text by length when text is Unicode.