set some default charset and switch from String charsetName defintion to real charset