bugfix: escaping of xml reserved characters when loading templates