Assign variable a percent encoded string