re-factoring: URLEncoder.encode(string) is deprecated
new resource URL must be decoded