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.