telnet-extra: Fix multi-line 'expect' strings for telnet

Make new line handling consistent with rsh_exec. This enables
using multi-line 'expect' strings.

Cc: Anton Kolesov <akolesov@synopsys.com>
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>