Pointed to my fork of duplex-emitter; added setEncding function for compatability