Asked around; it seems like stringified versions of course_ids never contain unicode.  So it seems like we should be able to just use to_deprecated_string here, unless there's something else you're concerned about?