Grafana MongoDB integration

Hi All,
Having issues with special character within the datasource adding URL.
I am trying to add a mongoDB data source using the below URL
–mongodb://abcd_perf_user:apple$pie@kmop0041.travp.net:27017,kmop0042.travp.net:27017,kmop0043.travp.net:27017/biom_prospect_perf?replicaSet=QA_Perf&w=majority"]

Where abcd_perf_user - username & apple$pie - password
it is failing to authenticate with below exception–
t=2018-09-24T07:24:34-0400 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=PUT path=/api/datasources/1 status=401 remote_addr=127.0.0.1 time_ms=6 size=26 referer=http://localhost:8080/datasources/edit/1?gettingstarted

Is this issue with $ character used in password ? if yes then how to resolve.
thanks in advance
Anuj