py3: fix a few "dict keys as str instead of bytes" issues in phabricator.py

Authored by Kwan.