Use codecs module to decode character.