Serialize paths