Encode address