add some charset-sniffing