Prompt for valid file format

If the file format written in the file name isn't valid, prompt the
user for a valid format.