BUG Fixing FilesystemSyncTask failing with subsites, rewriting valid URLSegments

See https://github.com/silverstripe/silverstripe-subsites/issues/35 for more context of the problem.

This could be done better, of course, but rather than making big API changes at this stage, I'd rather have the quick fix done until we can refactor later.