fix garbled newline on ssh