Converting API options with URI encode query string