Add support for alternate character set in termex