py3: use % instead of .format() on a bytestring

Authored by Kwan.