Ensure that paths keep their original encoding