Pack encodeHTMLSource and remove whitespaces