Add node::to_string

I've restructured some other code that results in code that's no
longer amenable to just having a print-to-file method.  This allows me
to just convert a node directly to a string instead.