Support for pathlib.Path objects