Added a utility to convert encoding name.