Fix for multiple escape characters in classad values

Could not merge or cherry pick commit 0521bef0e8b05f5f80bf442b6ad80c77ba0a5e67 since v3 has refactored the code handling globals.  So, I manually applied the fix to the v2+ code base.