title: file_get_contents adds an extra amp;
body: <p>Hello Im trying to geolocate some municipalities,
  Using the api directly to my browser i take the xml as a result.</p>
  
  <pre><code>https://maps.googleapis.com/maps/api/geocode/xml?language=el&amp;components=administrative_area:ΔΗΜΟΣ ΑΓΙΟΥ ΝΙΚΟΛΑΟΥ|country:GR
  </code></pre>
  
  <p>But when I'm trying to parse it with php:</p>
  
  <pre><code>$area="ΔΗΜΟΣ ΑΓΙΟΥ ΝΙΚΟΛΑΟΥ";
  $map_url='https://maps.googleapis.com/maps/api/geocode/xml?language=el&amp;components=administrative_area:'.$area.'|country:GR';
  
  $curl_handle=curl_init();
  curl_setopt($curl_handle, CURLOPT_URL,$map_url);
  curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
  curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Proclamations Parser');
  curl_setopt($curl_handle, CURLOPT_ENCODING ,"");
  $query = curl_exec($curl_handle);
  curl_close($curl_handle);
  
  //$response_xml_data =    file_get_contents($map_url);
  //$data=simplexml_load_string($response_xml_data);
  //var_dump($data);
  </code></pre>
  
  <p>when im using file_get_contents i get :</p>
  
  <pre><code>Warning: file_get_contents(https://maps.googleapis.com/maps/api/geocode/xml?language=el&amp;amp;components=administrative_area:ΔΗΜΟΣ AΓΙΟΥ ΝΙΚΟΛΑΟΥ |country:GR):
  failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
  </code></pre>
  
  <p>i noticed that the url changed: <code>language=el&amp;amp;</code> there is an extra <code>&amp;amp</code> that it wasn't there before file_get_contents.
  I tried curl way but i take as a result a null</p>
  
  <p>I used <code>urlencode()</code> function and nothing changed.
  Do i have anything wrong?
  And where this "amp;" coming from?</p>