Add functions to encode and decode payment addresses.