Fix for <CR><LF> in writing raw log