Protect against simple typographical errors

Prior to this change 'ISO-8859-1 ' will present you with an error.

This may cause unintended consequences that I'm not aware of (hopefully not), but it works with 'bad HTML' (this specific typo) for now.