Importing SVG Costume not working

I am trying to make a button using the SVG Costume block.
But it didn’t report the costume. Is it blocked?

Here’s the code:

How can I fix this?

I found the issue. The encode URI function is not working, but the encode URI component function does. I didn’t knew that.

Solution code: