In case this helps anybody ....
My Data had a backslash ( / ) and the above method failed there. After some try, I identified that you could include the selection in square brackets to make it work. For Ex, if your field name is KPI and possible selection could be KM/H., then your URL should be ....../select/KPI/[KM/H]
Thanks & Regards,