call to_path on the path before processing the path (if it responds to
to_path)