MenuView doesn't blow up when given Regexp special characters

A few string utilities moved from our internal codebase to Flame. The important function here is escapeForRegexp.