Fix unspecified-encoding
for Path()
#5020
Merged
unspecified-encoding
for Path()
#5020