Only escape source_uri if it cant be parsed

- Escaping the provided source_uri string was causing urls which
  already contain escaped characters to be escaped again. In particular
  it causes percentage characters to be encoded despite them being
  the escape character.
Merge pull request #788 from punkle/escapechars

Only escape source_uri if it cant be parsed