title: JS: How to keep the space in URL
body: <p>I'm using Angular 4 and in my service I have a delete api with 2 strings as params like this</p>
  
  <pre><code>this.http.delete(this.url + 'api/v1/ReportingService/collectionID/'+ '45902' +'/'+'ReportName/' + 'my report 2012:21:24.810419' + '/DeleteReport', { headers: this.headers })
      .map(this.extractResponse)
      .catch(this.handleError);
  </code></pre>
  
  <p>Report name param is having spaces. I'm aware that a url cannot have spaces. When I call the api spaces are getting replaced by %20. Thus I tried replacing spaces with '' and spaces with 20, both the ways. But I have to retain spaces since report name would be stored in the database with a space so I must have a space in the api.
  How to resolve this?</p>