Allow to (un)escape git tags from Python 2.x
This is to let the tagging plugin for Koji use them, which runs in the
context of the hub which currently uses Python 2.x. When the hub is
running on Python >= 3.6, we can revert this.
Signed-off-by: Nils Philippsen <nils@redhat.com>