Replace toPath() with a call to the IdentifierConverter