urlencode - encodes strings according to RFC 1738
urlencode [-m|-d] string [string ...]
The urlencode command line tool is not installed by default in linux.
$ sudo apt-get install gridsite-clients
string - The url string to be encoded.
The encoded url
$ urlencode "http://example.com/?param=linux+url+encoder"
http%3A%2F%2Fexample.com%2F%3Fparam%3Dlinux%2Burl%2Bencoder