[python-bugzilla] [PATCH 12/13] Update to_encoding to be forward compatible with python3