Fix up HTML; add Content-Length header.