Fixes issue #50.

Added urlencode function to enable downloading of files with special chars.  Fixes issue #50.