medialibrary: Avoid excessive work when searching/filtering clips
medialibrary: Handle special characters in the filtering search entry

Fixes bug #692333