Improve any path serialization