IFileNameValidator createDefaultValidator() { return new FileNameValidator(); }

Put that on a API exposed utility class.