Update hc128.py

Fix bugs and support Unicode