Bug 1018682 - URL API - SetProtocol should serialize and reparse the URL, r=bz