support a more sophisticated string escape character mechanism, modeled after the one JavaScript supports