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.
Merge pull request #2 from mxE333xm/patch-2

Use the actual length of bytes written in NBTTag String