fixed a conversion from Pathname to String