Added missing encodeURIComponent