url-encode vectorized strings in api urls