Remove specialized shell escape function

The cases this was guarding against aren't actually relevant any more.