Reimplement bookmark/history filtering with ICU StringSearch.

Previous implementation was only finding substrings containing
non-ascii characters at the beginning of phrase.