Use SanitiseFileName on system names before they are exported

Apparently although I added the `FileSystem::SanitiseFileName` function in #2229, I forgot to actually *call* it.