Defer sorting paths until utf8 encoding has happened.
This fixes the testsuite when run without extensions built. The only tests that fail without this change are under breezy.tests.per_workingtree.test_workingtree.TestIllegalPaths
Merged from https://code.launchpad.net/~jelmer/brz/encoding-no-extensions/+merge/349776