Handling malformed urls
Merge pull request #177 from matthewsibigtroth/url_writing_url_prefix_fix

Handling malformed urls.
Quick-merging for London demo.