title: WCF REST Service - Variables with backslash
body: <p>I have the following contract:</p>
  
  <pre><code>[OperationContract]
  [WebGet(UriTemplate = "Devices/{*id}", ResponseFormat = WebMessageFormat.Json)]
  Device GetDevice(string id);
  </code></pre>
  
  <p>The id of a device can contain backslashes "\" and "&amp;" since it represents a path for a device.</p>
  
  <p>When I send a GET request with the id, the GetDevice function receives the id, but with slashes "/" instead of backslashes "\".</p>
  
  <p>Any way to prevent this?</p>