Fix for issues #29 and #17, now invalid chars in directory name are being omitted

Before this fix program was unable to create directories if course name
contained invalid chars, e.g. ':' in "Stat2.1x Introduction to Statistics: Descriptive Statistics"