nl: replace every occurrence of string '\r\n' in message with '\n', replace every occurrence of string '\r',
code: eol_message = message . replace ( str ( '\r\n' ) , str ( '\n' ) ) . replace ( str ( '\r' ) , str ( '\n' ) )