in reply to how to url encode at OS level?

possible misconception here:
This is invoking the system command to open a browser window to the specified url.

No, it is invoking the system comment to open a DOS window.