Properly escape CourseKeys and UsageKeys in html templates

do you need the `unicode` call here?  I would have expected it to automatically stringify the argument.