Move the Windows argument list conversion code to a common routine.