Simplified exportAll.
Refactored escaping