added encodeURIComponent(...)