Crlf on raw mode

fixes #384 and #389 

As we can't set/unset the raw mode, we need to send CRLF to the client in order to have a correct output.