Added internal encoding streaming using node's StringDecoder class.

Also, slightly changed streaming codec signature to match StringDecoder.