fix case-insensitive regular expression search with exotic characters