Fix mypy errors about byte strings as format string parameters

This commit is contained in: