decoding encoded charactors