Filename sanitization and collision resolution on Windows