Use 'encodeURIComponent' instead of 'escape' as it is deprecated.