encodeURIComponent for named params