title: how to pass an id containing / in backbone.js
body: <p>HI my basic model which fetches data from server is working perfect. I want to implement a search feature. When user enters any data the request goes to browser and desired model is returned. </p>
  
  <pre><code>var Book = Backbone.Model.extend({
    urlRoot: '/books'
  });
  
    render: function(options) {
    books = new Book({id:options.name});
    books.fetch();
     }
  </code></pre>
  
  <p>where </p>
  
  <pre><code>  name = "search/"+dynamic_data;
  </code></pre>
  
  <p>Request URL that is being formed  when i pass  --> 'life' in  variable dynamic_data</p>
  
  <pre><code>  http://host/path/search%2Flife
  </code></pre>
  
  <p>Request URL that i want </p>
  
  <pre><code> http://host/path/search/life
  </code></pre>
  
  <p>How can I encode/escape my string to achieve the desired result. I have tried escape(), encodeURI(), encodeURIComponents</p>
  
  <ol>
  <li>A workaround to solve this is create one more model with urlRoot as /books/search and pass just name . I don't think this is correct. Should I use this ?</li>
  </ol>