No need to use  encodeURIComponent. jQuery takes care of that.