Searching for Irish names that have an apostrophe

So today I discovered that I can’t search for names such as O’Gorman because the database doesn’t recognise the apostrophe. I thought it had been fixed when we discovered it was adding a ‘?’ in place of an apostrophe in the text but it seems to have broken again. I’m currently going through all the entries and adding the name without an apostrophe in the text so it’s searchable, eg, Mary OGorman. Otherwise just leave the O’ off the search, eg, just search for Gorman, and it’ll find it but will also pull up other Gormans if there are any.