Added Encoding type selectionf for tcp server string messages handling