Fixed URL-encoding of substring for "autcomplete from url"

Change-Id: If12c3a26e424ebaccecd85b896e96c55a0211ab4