change escape to encodeURIComponent