Broke EscapeAndAppend into purpose specific methods

Wrote gtests for them as well.