Ensure app origin is encoded (bug 1065006)

no because quote_plus would double encode it. Reverse already does encoding, just not for the double slashes for some reason.