Encode data sent to a socket
Merge pull request #1 from py3minepi/encode-socket-data

Encode data sent to a socket