build: make docs/conf.py compatible with py3

I don't even know what this file does, but it made our Debian build
fail on py3 because it attempted to pass unicode to
`mercurial.ui.setconfig()`.
7 jobs for topic/default/debian-py3 in 8 minutes (queued for 26 seconds)
latest