Convert path object to string