Bug fix group admins marking courses as group templates
Improve encoding of entities in titles and names, prevent XSS in titles and names.