Replace the title's {0} with 'File' or 'Directory' in the illegal characters message
Type fixed on the return description
Merge pull request #4491 from TomMalbran/tom/issue-4453

Issue #4453: Parameter "{0}" appears in the invalid filename title.