fixed validation of file names