Validate file names for saving