Merge pull request #2324 from MartinNowak/fix13098

[REG2.066a] Issue 13098 - std.path functions no longer works with DirEntry
Merge pull request #2333 from 9rnsr/fix13098

[REG2.066a] Remained fix for issue 13098 - isValidFilename and alias this
Merge pull request #2335 from 9rnsr/2.066

Cherry-picking commits from master to 2.066 branch (for beta5)