Fix handling of accents when filtering contacts

Fixes #2656