add option to override charset, in case it is wrongly set by the source