Fix implicit string conversion of Pathname