Simplify _.*escape declarations
Optimize *escape by testing a string before escaping
Merge pull request #1740 from megawac/escape-simp2

Optimize and simplify escape