Fixed Content-Length header generation.