Corrected the format of the message to server.

Also, needed to toString() the data.