When I specify an incorrect output file name (for example, the name contains "?" character on Windows), the file can't be created. Therefore an error appears at the end of the workflow execution. The check on valid name should be added to WorkflowUtils::validateOutputFile, WorkflowUtils::validateOutputDir.