Handle Pathname objects in