Fix ``unspecified-encoding`` for `Path()`
This closes #5017
4 files changed