URL encode required arguments in endpoint paths