Fixed the ISO charset parser and added try-catches around potentially unsupported charsets