title: Javascript URL has illegal characters in it
body: <p>I'm working with Cloudinary, an image hosting service. I am currently storing my URLs as strings such as: <code>http://res.cloudinary.com/dhulxtn8x/image/upload/v1400107030/zz06phflcmal8xmpg2hh.jpg</code></p>
  
  <p>I need to add a setting parameter to the URL, so I am splitting it, inserting the setting and then joining it back. However, I am getting illegal characters when I combined it back together. Here is my code:</p>
  
  <pre><code>var fileSplit = file.split('/');
  var uploadUrl = fileSplit.splice(0, 6).join('/');
  var uploadId = fileSplit.splice(0, 8).join('/');
  var thumbnailSetting = '​/c_fill,h_150,w_100';
  var uploadUrl = uploadUrl + thumbnailSetting + uploadId;
  </code></pre>
  
  <p>The <code>console.log()</code> says: <code>http://res.cloudinary.com/dhulxtn8x/image/upload​/c_fill,h_150,w_100v1400107030/zz06phflcmal8xmpg2hh.jpg</code> however my console also then says:</p>
  
  <p><code>GET http://res.cloudinary.com/dhulxtn8x/image/upload%E2%80%8B/c_fill,h_150,w_100v1400107030/zz06phflcmal8xmpg2hh.jpg 400 (Bad Request)</code></p>
  
  <p>You can see the illegal characters after <code>upload</code>. How can I get rid of these without removing characters that I might need.</p>