Add call to set_charset() if it set in config