Encode URI path params in `accounts.retrieve` (#2761)