net/url: use strings.Index instead of a loop
net/url: use strings.Index instead of a loop

We already depend on strings in this file, so use it.

Plus strings.Index will be faster than a manual loop
once issue 3751 is finished.

R=golang-dev, khr
CC=golang-dev
https://codereview.appspot.com/8116043

scirelli/scirelli-go,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,rdp/rogerpack2005-golang,d0f/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,d0f/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,bryanxu/go-zh,webfd/go-zh,webfd/go-zh,bryanxu/go-zh,d0f/go-zh,scirelli/scirelli-go,bryanxu/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,scirelli/scirelli-go,scirelli/scirelli-go,mhennings/marcohennings-go,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,mhennings/marcohennings-go,rdp/rogerpack2005-golang,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,rdp/rogerpack2005-golang,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,mhennings/marcohennings-go,rdp/rogerpack2005-golang,d0f/go-zh,scirelli/scirelli-go,bryanxu/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,webfd/go-zh,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,bryanxu/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,webfd/go-zh,rdp/rogerpack2005-golang,scirelli/scirelli-go,sanjosh/sanjos100-tipc,webfd/go-zh,mhennings/marcohennings-go,webfd/go-zh