Contacts: Moved escaping of strings to template plugin.