[ard] Encode url (Closes #3412)