Use escape() instead of encodeURI()