title: CouchDB view throwing invalid UTF-8 JSON error when using key, startkey
body: <p>I have a VERY basic view defined in CouchDB:</p>
  
  <pre><code>function(doc) {
    if(doc.date &amp;&amp; doc.erc) {
      emit(doc.date, doc.erc);
    }
  }
  </code></pre>
  
  <p>It simply pulls ALL documents and sorts by dates.</p>
  
  <p>I've tried appending </p>
  
  <pre><code>?startkey="2010-05-01"
  </code></pre>
  
  <p>to the URL and Futon just browser redirects.</p>
  
  <p>I've tried using CURL as well:</p>
  
  <pre><code>curl -X GET http://localhost:5984/plots/_design/by_date/_view/by_date?startkey="2010-05-01"
  </code></pre>
  
  <p>That throws an error:</p>
  
  <pre><code>{"error":"bad_request","reason":"invalid UTF-8 JSON"}
  </code></pre>
  
  <p>What am I doing wrong? This should be a VERY basic thing.</p>
  
  <p>Thanks,
  -Jim</p>