Properly escape CourseKeys and UsageKeys in html templates