Yes, that's why the on-disk representation should be fixed to be unambiguous, i.e. by encoding characters that cause the ambiguity.