handles character set