add new nbt string read/write utility
more work on template rules and old-format conversion