add support for encoded chars