Use encodeURI instead of escape