Refactor to avoid to use a function and wire directely the telnet output to the vertx buffer write