modify Content-Length header properly