Invalid character checking has been added

File names containing '/' or '\0' will now force the program to exit