Support unicode in course ids when dumping all courses

Fixes: AN-657
Merge pull request #2920 from rocha/make-course-export-related-command-unicode-aware

Support unicode in course ids when dumping all courses