fix(client): read PathLike contents passed inside a file tuple