Uri_escape filter not working as expected

I’m working on fixing a bug with one of my themes where a link it not converting spaces to %20s.

I have a test site example where I use the uri_escape filter but it is not replacing spaces to %20s like the description says.

Any reason why this isn’t working?