Added URL encoding & decoding in case of long urls