Fixed bug in SimplSocket regarding message length calculation