Newlines in tcp socket