encode input URLs before building fully-qualified URLs
Merge pull request #100 from featurist/encode_uris

encode input URLs before building fully-qualified URLs