Add various options for making it easy unescape, or mangle, or format as template instance or append a suffix. (cherry picked from commit a1948c7b) Conflicts: .gitignore