Workaround for case-sensitive SQLite search for non-Unicode characters.