Putting the conditionals outside the call to `escaper` would also be much faster.