encode url parameters for upload via url