THRIFT-2879 TMemoryBuffer: using lua string in wrong way