Fixed bug where escape was being escaped with wrong value