Singlequote in Data Links get doubled

Hello,

I’m trying to send a query with a data link in dependencie on which bar plot I’m clicking. Because I have to send valuas for variables I need some single quotes in my URL.
It looks like that:
…${sqlQuery:queryparam} SELECT wear_slc FROM hw_info WHERE wear_slc ‘90 - 100 %’

I use ASCII Encoding Reference for whitespaces, equals, etc.
But when I’m using %27 for a singlequote, it get double.

If my data link looks like that:
…&${sqlQuery:queryparam}SELECT%20wear_slc%20hw_info%20WHERE%20wear_slc%20%3D%20%2790%20%2D%20100%20%25%27

my query looks like that:
SELECT wear_slc hw_info WHERE wear_slc = ‘‘90 - 100 %’’

Any Idea how to fix this?