Made charset selectable on init.