[tor-commits] [tor/master] Extract time encoding functions into lib/encoding