use encodeURIcomponent, capture its use in some tests