be more robust for duplicate charset= specification in charset tag