I don't think the existing path tests really test actual conversion of chars that don't have the same value in all charsets, so this adds test coverage of the path class on posix systems as well.
This is as a separate patch for now, but could also be squashed into one of the later commits that implement the corresponding things for windows.
Can you add a comment explaining what this test is about?