core: replace unicode match exprs with bsearch in const arrays, minor perf win.