Serialize the paths nodes to a string.
a Path
return a string with instructions describing the string you need to free this with g_free.