Switch to the NBTBase methods for writing with streams.