UTF8 characters corrupted when creating new/empty tree