Apply a ICUTermFilter on a piece of UTF-8 text.
The filter to apply
The text to apply the filter on
A newly allocated string. Free with g_free.