Unified escaping API
Added some hardcore escape/unescape consistency tests