Plugin: don't pass overlong URLs (such as data:application/pdf;...) over the command line (fixes issue 2308)