title: angular-resource.js encodeUriSegment Issue
body: <p>I have an issue querying restful resources when the resource uri has several subpaths :</p>
  
  <p>Example :</p>
  
  <pre><code>.factory('SomeFactory', function ($resource) {
  return $resource('/path/subPath/otherSubPath/:id', {}, {
  show: { method: 'GET', params: { id: '@id' } }
  })
  }) ;
  </code></pre>
  
  <p>When I invoke SomeFactory.show in a controller I get the error 
  the server responded with a status of 400 (Bad Request) 
  This is because the browser is looking for the uri :</p>
  
  <pre><code>http://server/path/subPath%2FotherSubPat/id
  </code></pre>
  
  <p>Notice the %2F replacing the / (slash) in the uri , I have tried many tricks in javascript to make this work ; But the only solution was to add the following last line replace(/%2F/gi, '/'); in angular-resource.js encodeUriSegment method .</p>
  
  <p>Please tell me if this approach is correct .</p>
  
  <pre><code>function encodeUriSegment(val) {
    return encodeUriQuery(val, true).
      replace(/%26/gi, '&amp;').
      replace(/%3D/gi, '=').
      replace(/%2B/gi, '+').
      replace(/%2F/gi, '/');
  }
  </code></pre>
  
  <p>Thanks .</p>