Refactored stripping <body> to simpler match/replace
Extracted FixMalformedHTML into GlobalFunctions