#1140 search with special characters fails