Fix problem with newline in prompt when useing telnet