Created new method for showing a dialog box for invalid filenames and changed the invalid characters.