Fixed a bug caused by encodeURIComponent encoding /s.