Allow loading Pathnames

`to_str` does not exist for `Pathname` objects.