Validate file names for opening