pass socket.write callback as second argument since node v 0.8 doesn\'t check for null encoding argument. v 0.10 will accept callback as second argument.