Turn array into string before using it in a URL