Improved stream copy in multipart entity.