[tor-commits] [tor/master] Refactor format_*_number_sigsafe to have a common implementation