Send issues

Resolved some issues related to sending data to the server, thanks to
Dash and Simpson on IRC for raising the point.