Hi @Yuvraj Patil
Per my test, I try to retrieve the ServerRelativeUrl by File.ServerRelativeUrl and get the following result return
The result turns out to be decoded URL and encoded URL should be like following
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.