remove unuseful code
charset