Minor revamp of filename/path sanitisation

* Backslash now allow in —-subdir-format on Windows
* Leading/trailing whitespace removed
* —-fatfilename now always default setting for Windows
* —-fatfilename now controls stripping of non-ASCII chars
Decode/encode UTF-8 web and file I/O

Content now decoded when read from web and encoded when written to files.