Fix content-length generation for ie8
Fixed with of hack