Correct writing to UART.