SampleImageUploader: use URLEncoder instead

Instead of using a helper method to decide what URL encoding fixes are
made, it makes much more sense to just use URLEncoder.encode with UTF-8
encoding format.