title: how to escape single quote in odata filter uri?
body: <p>I tried to escape the single quote when preparing the query in JS this way: </p>
  
  <pre><code>_value.replace(/'/g,'%27')
  </code></pre>
  
  <p>and this way: </p>
  
  <pre><code>_value.replace(/\'/g,'\\\'');
  </code></pre>
  
  <p>both doesn't seem to work</p>
  
  <p>You can see an example here: 
  <a href="http://services.odata.org/V3/Northwind/Northwind.svc/Orders" rel="noreferrer">http://services.odata.org/V3/Northwind/Northwind.svc/Orders</a>?$select=Freight,CustomerID&amp;$filter=ShipName+eq+'B's%20Beverages'&amp;$format=json</p>
  
  <p>Does anyone know how to escape the single quote? </p>
  
  <p>Thanks</p>