text: Title: Adding support for Path objects to APIs that take paths
  Body: As mentioned in #5682, we may have some public APIs that take paths and the implementations should now use `Path` objects so it should be trivial to also accept `Path` objects in these APIs. 
  
  I think the first step is actually identifying such APIs.