Fix width of format_hex when there are leading zeroes (fixes PR benho… …yt#1)
Fix encoding issue with README.rst/setup.py on Python 3 on Windows