Fix creation of Uri if the lookup key has characters that are not allowed in a Uri

Change-Id: Ie617b76fdb800b1b8877b435dabe37008f03a3bb
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index ee86ef9..551a79c 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -548,7 +548,7 @@
                 if (mAllRestricted) return false;
 
                 // TODO: Keep around actual LOOKUP_KEY, or formalize method of extracting
-                final String lookupKey = mLookupUri.getPathSegments().get(2);
+                final String lookupKey = Uri.encode(mLookupUri.getPathSegments().get(2));
                 final Uri shareUri = Uri.withAppendedPath(Contacts.CONTENT_VCARD_URI, lookupKey);
 
                 final Intent intent = new Intent(Intent.ACTION_SEND);