src: use StringBytes::Encode in node::Encode()

This makes node::Encode actually work properly with base64,
ucs2, hex, etc.