SampleImageUploader: don't encode the whole URL

Was mistakenly encoding the entire URL with URLEncoder.

We just want to encode the file name, since the base url is specified
appropriately.

So we'll just use file.toURI.toURL to do standard file encoding, and
then pull off the actual file name.