title: http:// Becomes http%3A%2F%2F in CodeIgniter
body: <p>The following redirect url becomes with http%3A%2F%2F instead of http://. How can I avoid this?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>$params = array(
              'client_id' =&gt; $client_id,
              'redirect_uri' =&gt; site_url('welcome/google_connect_redirect/'), 
              'state' =&gt; $_SESSION['state'],
              'approval_prompt' =&gt; 'force',
              'scope' =&gt; 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email',
              'response_type' =&gt; 'code'
          );
          $url = "https://accounts.google.com/o/oauth2/auth?".http_build_query($params);
          // send to google
          redirect($url);
  </code></pre>
  
  <p>URL becomes like this.</p>
  
  <pre><code>https://accounts.google.com/o/oauth2/auth?client_id=871111192098.apps.
  googleusercontent.com&amp;redirect_uri=http%3A%2F%2Flocalhost%3A8888%2Fmyappname
  %2Findex.php%2Fwelcome%2Fgoogle_connect_redirect&amp;state=f0babsomeletterscb5b48753358c
  3b9&amp;approval_prompt=force&amp;scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2F
  userinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&amp;
  response_type=code            
  </code></pre>