Adds string buffer to TCP sockets, fixes #52