Improved charset resolution in HTMLCleanerParser