It would be great if $encode and $decode could handle URL-encoding (as in application/x-www-form-urlencoded). Yes, it is easy to script, but the speed is just terrible - around 10KB per second on 1.2Ghz AMD. Not good if you are looking to HTTP POST several megabytes of data.

Code:
alias urlencode {
  bread "c:\binary.junk" 1 102400 &bin
  var %start = $ctime, %i = 1, %temp
  while (%i <= 102400) {
    %temp = % $+ $base($bvar(&bin,%i,1),10,16,2)
    inc %i
  }
  echo -s Encoded 100 KB in $calc($ctime - %start) seconds
}


(I know this snippet "over-encodes", A-Z etc don't need to be converted. But adding n+1 tests of the ascii value would only make is slower. Mirc's $encode could and should do proper encoding.)