Use encodeURIComponent for characters between slashes