[IMAPX] Do not expose user credentials in debug logs

And skip trailing \r\n in the io logs as well.