added readable stream 1.0.2 support for encoder