terminate character reference