Stellar UTF-8 Support
The problem was in count of characters encoded in tx. C++ code allocate memory depending of count variable in tx. 
This commit solve the problem: https://github.com/stellar/js-xdr/pull/4/commits/119a8c26f71de8568d88cee1a94cb33074797859