Fixed bug with communicate, str and byte and encodings