Handle pathlib.Path in Extract's input file