I'm trying to get the data from my Rest API controller using anuglarjs http GET request. However, the params that I need to send include "." symbol which caused the URL failed. I tried to encode it but it does not work. Here is what I did:

```
function getApplication($http) {
    this.getData = function(application,name) {
      return $http({
        method : 'GET',
        url : http://localhost:8080/app/rest/+ 'app/' + encodeURIComponent(name)
      }).then(function successCallback(response) {
        return response.data;
      }, function errorCallback(response) {
        console.log(response.statusText);
      });
    }
  }

```

The name param is `app.01.com`

and the URL result I got is: 

```
GET http://localhost:8080/app/rest/app/app.01.com 406 (Not Acceptable)

```

anyone know how to encode the url so I can get the data from Rest Controller?
Thanks