I think this is a basic question, however, for some reason my small and simple script won't work ..

Since my framework don't allow special characters, I have to encode an url. So for example domain.com/This_is_a_heart_♥ becomes domain.com/This_is_a_heart_%E2%99%A5

But when I paste the second URL in the browser, the browser converts it back to domain.com/This_is_a_heart_♥ so the framework throws an error again.

How can I fix this?