Bug #2936: Template wizard cannot save if some values have quotation marks
(cherry picked from commit df4fd64807b5d3027067c4b389bd05a379942a07)