Use the actual length of bytes written in NBTTag String

getBytes with a charset can modify the string when it encounters nonmappable characters.

This will result in NBT-Lib producing corrupt NBT Files when processing files generated by Mods which Minecraft reads and writes without problems.