Changed the message id from int to String.

The messageID() returns a string impossible to change into a int, if
not the hash is calculated or something like that.
Updated the socket streams to be in UTF-8.