setup: Fix decoding in non-UTF-8 environments

I have been hitting this issue while packaging aiodns for Exherbo:
all our builds are done in sandboxes where LANG=C

Note that this fix is for Python 3 only.
As I'm not a Python developer, I will let you find a solution compatible with 2.7