syllabusTracker: fix issue that illegal characters in course name will corrupt JSON files