using encodeURIComponent instead of deprecated escape now