nbt-parse: fix name write