use escape instead of encodeURI