[tor-commits] [bridgedb/master] Move base64 re-padding logic into separate function.