API get request is not working

I am trying to access erpnext data trhough api. My search is working while text doesn’t have any space like “Text” but when search data have sapce like “Have Sapce” then curl retrurn message Bad request syntax.

"GET /api/resource/Brand?filters=[["model","like","%4M%"]]&fields=["model","name"]&limit_page_length=20& HTTP/1.1" 200 -

Not Working:
code 400, message Bad request syntax ('GET /api/resource/Brand?filters=[["model","like","Halmar K209"]]&fields=["model","name"]&limit_page_length=20& HTTP/1.1')

Putting urlencode in text from php end it’s worked. Like: urlencode('Halmar K209')