DBIServerEncpquery() does append a \r\n to the end of the query and yes the DBIServer is expecting this, and it gets the packet from the client, however the information that it tries to send back never gets to the client, but it does get to telnet.
Thanks,
-ghostiLs