401 error in downloading attachment contetn through RestAPI

I am trying to download attachment of issue through code using Attachment Content URL.
I am creating a Jira cloud addon and using addon key to get attachment by Rest API call.

But for some file names having Special Characters like ‘(’,’)’ or chinese Literals like ‘機能’, I get 401 unauthorized message.

Let me know if there is some way through which we can get attachment content.