stream: another fix for chunked encoding