fs/memfs: Extend TreeBuilder with an Encode method
fs/memfs: Make FS implement Text{Unm,M}arshaler interfaces