Ugly but working fix of charsets