Encoded url doesnt provide the correct data


I am trying to query flights in certain latitude and longitude.

The below url returns the correct data in a browser

In the Geoevent server, the url has to be encoded but I don’t get the correct data after I encode it
base url - https://id:key@flightxml.flightaware.com/json/FlightXML2/SearchBirdseyeInFlight

query url - %7Brange%2520lat%252038.8863%252040.897669%7D%2520%7Brange%2520lon%2520-79.03655%2520-77.1236%7D

What am I doing wrong? any thought? thanks in advance!!