Fix for UTF-8 search when system locale is set to Latin-1