title: Extra escape character in go URL
body: <p>I have the following snippet of code :</p>
  
  <pre><code>    u := *baseURL
      u.User = nil 
      if q := strings.Index(path, "?"); q &gt; 0 { 
              u.Path = path[:q]
              u.RawQuery = path[q+1:]
      } else {
              u.Path = path
      }   
  
      log.Printf(" url %v, u.String())
  </code></pre>
  
  <p>I see that when the baseurl is set to something like this <a href="http://localhost:9000/buckets/test%?bucket_uuid=7864b0dcdf0a578bd0012c70aef58aca" rel="nofollow">http://localhost:9000/buckets/test%?bucket_uuid=7864b0dcdf0a578bd0012c70aef58aca</a> the url package seems to add an extra escape character near the % sign. For e.g. the output of the above print statement is the following :</p>
  
  <pre><code>2015/03/25 12:02:49  url http://localhost:9000/pools/default/buckets/test%2525?bucket_uuid=7864b0dcdf0a578bd0012c70aef58aca
  </code></pre>
  
  <p>This seems to only happen when the RawQuery field of the URL is set. Any idea why this is happening ?  I'm using go version 1.3.3 </p>
  
  <p>Cheers,
  Manik</p>