[LMP] Added SubstitutionFlags to PerformSubstitutions().

Effectively moved filesystem name fixups to this function.
[LMP] Rely on SFSafeFilesystem in sync manager.
[LMP Graffiti] Expand mask with SFSafeFilesystem.