Don't encode already encoded URLs. fixes #376