Fixing extraction of HTML content in multipart format