add encodeURI to constraints