Iterate through utf-8 text more efficiently in TrieTree::find_matches()
Fixes Bug 729832.