Navigates through an array and encodes the values to be used in a URL.
Uses a callback to pass the value of the array back to the function as a string.