finishing up chunked encoding