Fixes #6998 - Accept native true for overwrite parameter to host API.

I found I had to encode the API parameter Overwrite as `{"overwrite": "true"}` rather than as a native JSON boolean. The quoted form is needed for the UI. This change allows both forms from the API.