[sr-dev] git:master: - fix bug in encode_contact()