Fix escaping difference in cosmos (#1561)
Fix escaping difference in cosmos (#1561)

* Fix comment typo

* Add json escaping compatibility

* Handle packages more generally

* Check for conformance to schema before escaping

* Do the escaping in a slightly different (and better) place that is shared by the universe converter.

BuoyantIO/universe,AppliedIS/universe,mesosphere/universe,madanadit/universe,mesosphere/universe,AppliedIS/universe,madanadit/universe,BuoyantIO/universe,madanadit/universe,AppliedIS/universe,BuoyantIO/universe