Fix handling of decoding contacts UID

A problem occurs when the contact UID contains a special character that
was HTML encoded (ex: space, &, ").