Add base-64 encoding of serialized output.
Get endianness right.
Fix thinko.

Can now round-trip an empty SC.