Added functionality for stripping illegal characters out of module names for saving the directories.