Handle non-ASCII paths.

Rails automatically decodes percent-escaped parameters, but these are no longer valid paths and fail both our absolute_path validation and the parsing involved in calling out to other HTTP services. We now explicitly re-encode the base_path and use that encoded version in the database and when calling URL arbiter etc.
It would be good to update `@data['base_path']` as well, just for consistency.