Ah yes! That works perfectly. I remember seeing that thread but I hadn’t put two and two together. Thank you.
However, I can make a contribution in return: I have an AppleScript Objective-C script for URL encoding text. I’ll post it in the other thread.
[Edit: here it is.]