optimize character set definition.