Update channel.py

to fix the ASCII related bug