title: Google apps script urlfetch encoding URL
body: <p>I would like to use urlfetch to populate a spreadsheet with page data but the URL that I am trying to use is coming back with an error as an invalid argument. I think the problem is that I am using characters in the URL that are being misinterpreted (e.g. quotation marks and parentheses).</p>
  
  <p>I have tried to encode the URL with the command below but I am assuming that I am double encoding some of the characters and that is causing a problem.</p>
  
  <pre><code>var encodedURL = encodeURIComponent(pageURL)
  </code></pre>