Fix the CR/LF problem for both uart and the console.