title: How do i escape invalid characters in filenames on multiple FS
body: <p>How do i escape invalid characters in filenames? I <a href="https://stackoverflow.com/questions/1021022/filesystem-filename-escape-c">ask this question once before</a> and wrote up a class with the solution. Now i would like to extend it. My site will be able to detect what OS the user is on. So base on that i either 1) Want to escape based on the FS/OS the user is on or 2) Escape it so it works on all filesystems.</p>
  
  <p>What characters may be valid on windows 7 or linux (i am unsure what my current linux FS is set to) and invalid on XP or valid on windows or mac and not on linux?</p>