Fix bugs in telnet handling.
Merge branch 'release_30' into release_31

Fix bugs in telnet handling.
Reenable the option for turning off GMCP.
Merge branch 'release_30' into release_31

Reenable the option for turning off GMCP.
Fix leaks in XMLimport.