Added regex for invalid file names.