stream: make setEncoding chainable

I expected this to be chainable.