you should be able to do `map(encodeURIComponent)`, no?