changed string serialization in tcp messages