Option to escape special characters when passing objects to custom script

Option to escape special characters when passing objects to custom script

We would like the ability to escape problematic characters found in objects when they are being passed to a script. An example is a recent user with the first name of "D'Artra". When this is passed as a parameter in a line using the %givenname% variable, it breaks the script due to the extra apostrophe.