adding character decoding to SEP demo