Clean up headers and footers for conversion.