converting data to quoted words to escape special characters
===

In my Perl program, I am fetching an encrypted email, decoding it and processing it further. I am facing a problem since the data contains: `%localappdata%`
I could not use the qw() function directly since the data is being fetched from the mailbox. Is there a way to apply this function?
How do I use it so that special characters are not recognized as special characters but normal characters? Or is there a regex to do so?