version 1.2: added support for use of CRLF line endings communicating with server (for e.g. hotmail)