Duplicate the two trivial escaping functions remaining from tornado's code and remove the dependency.
Duplicate the two trivial escaping functions remaining from tornado's code and remove the dependency.

openstack/oslo.versionedobjects,citrix-openstack-build/oslo.versionedobjects