Reduce copying on parse_url() call sites.

this will fix #1535

r?