title: ' character in string parameter of Odata Url
body: <p>Hmmm this seems silly, so I feel silly. I have a custom operation on an Odata service which has a string parameter. It works fine when the string contains no special characters, but as soon as I include the ['] character I get:</p>
  
  <pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?&gt;\r\n&lt;error xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"&gt;\r\n  &lt;code&gt;&lt;/code&gt;\r\n  &lt;message xml:lang=\"en-US\"&gt;Bad Request - Error in query syntax.&lt;/message&gt;\r\n&lt;/error&gt;
  </code></pre>
  
  <p>I am invoking the service with the following code:</p>
  
  <pre><code>new DataServiceContext(new Uri(svcUri)).Execute&lt;string&gt;(new Uri(relativeOperationUrl, UriKind.Relative));
  </code></pre>
  
  <p>I've tried encoding like this [&amp; apos;] (xml encoding) and like this [%27] (url encoding) and the things is still blowing up.</p>