removed redundant char encoding definition