Corrected show_hids.py for local encodings