Added URL decoding for resource