custom escape and unescape mappings and functions