Move NSURL -queryComponents to Core.