Merge pull request #682 from abeloin/master

Replaced GetInvalidFileNameChars for Mono