use pathlib for building file:// URIs