title: Unable to update Stripe accounts with URI error
body: <p>I receive the following error when attempting to update Stripe Connect accounts:</p>
  
  <pre><code>bad URI(is not URI?): /v1/accounts/{ "id": "acct_xxxxxxxxxxxxxxxxxx", "object": "account", "business_profile": { "mcc": null, "name": null, "product_description": 
  ....
  ....
  </code></pre>
  
  <p>I am able to create accounts but updating them doesn't seem to work.  I am using the same form and similar code in the controller.  This is my update method in controller:</p>
  
  <pre><code>def update
  
      unless (current_user || current_affiliate).stripe_account
        redirect_to new_user_stripe_account_path and return
      end
  
    begin
      @stripe_account_retrieve = Stripe::Account.retrieve((current_user || current_affiliate).stripe_account.acct_id)
  
      stripe_account_params.each do |key, value|
        if value.empty?
          flash.now[:alert] = "Please complete all fields."
          render 'edit' and return
        end
      end
  
      if @stripe_account.account_type == "individual"
         Stripe::Account.update(
          @stripe_account_retrieve,
          {
        :country =&gt; stripe_account_params[:country],
        :type =&gt; "custom",
        :business_type =&gt; stripe_account_params[:account_type],
        requested_capabilities: ['platform_payments'],
          individual: {
            address: stripe_account_params[:address_line1],
            first_name: stripe_account_params[:first_name],
            last_name: stripe_account_params[:last_name],
            ssn_last_4: stripe_account_params[:ssn_last_4],
            # phone: stripe_account_params[:business_tax_id],
              dob: {
                day: stripe_account_params[:dob_day],
                month: stripe_account_params[:dob_month],
                year: stripe_account_params[:dob_year]
              },
              address: {
                line1: stripe_account_params[:address_line1],
                city: stripe_account_params[:address_city],
                state: stripe_account_params[:address_state],
                postal_code: stripe_account_params[:address_postal]
              },
            },
          tos_acceptance: {
            date: Time.now.to_i,
            ip: request.remote_ip
          }
  
      })
  ....
  ....
  respond_to do |format|
        @stripe_account = StripeAccount.find(params[:id])
        if @stripe_account.update(stripe_account_params)
          format.html { redirect_to @stripe_account, notice: 'Stripe account was successfully updated.' }
          format.json { render :show, status: :ok, location: @stripe_account }
        else
          format.html { render :edit }
          format.json { render json: @stripe_account.errors, status: :unprocessable_entity }
        end
      end
    end 
  end
  </code></pre>
  
  <p>According to the docs, I don't see anything I am doing wrong...
  <a href="https://stripe.com/docs/api/accounts/update" rel="nofollow noreferrer">https://stripe.com/docs/api/accounts/update</a></p>
  
  <p>My edit in controller:</p>
  
  <pre><code>def edit
      @stripe_account_retrieve = Stripe::Account.retrieve((current_user || current_affiliate).stripe_account.acct_id)
      @stripe_account = StripeAccount.find(params[:id])
  end
  </code></pre>
  
  <p>When i submit the update form (this is ahead of the error:)</p>
  
  <pre><code>Started PATCH "/stripe_accounts/27" for 127.0.0.1 at 2019-04-03 20:16:38 -0400
  Processing by StripeAccountsController#update as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"3//b+Exxxf9xxxtagFbsdzMxxxW+wxxxx899FDLfMb/RxxxxQA==", "stripe_account"=&gt;{"first_name"=&gt;"seller21114", "last_name"=&gt;"last2124", "ssn_last_4"=&gt;"2222", "dob_month"=&gt;"1", "dob_day"=&gt;"10", "dob_year"=&gt;"1912", "address_line1"=&gt;"111 st", "address_city"=&gt;"san fran", "country"=&gt;"US", "address_state"=&gt;"IL", "address_postal"=&gt;"90210", "tos"=&gt;"1"}, "2"=&gt;"", "button"=&gt;"", "id"=&gt;"27"}
  </code></pre>
  
  <p>IS there anything I am doing wrong here with my code?</p>