Fix escaping control.
document implementation of custom escaping modes.