Prevent search matches from rendering as unreadable black text.