Translate newline from stdin into \r to device.

This makes teensy-mon more compatible with regular terminal emulators
and allows it to work with micropython.