Fix StreamEncoder.chunk