title: ErrorException: json_encode(): Invalid UTF-8 sequence in argument
body: <p>This issue is occurred in my server but I can't reproduce this. My code for this as follows </p>
  
  <pre><code>$data = [
              'param1' =&gt; urlencode($param1),
              'param2'  =&gt; urlencode($param2)
          ];
  echo json_encode($data);
  </code></pre>
  
  <p>$param1 and $param2 is taken by query string
  ex <a href="http://mydomain?param1=param1&amp;param2=param2" rel="nofollow">http://mydomain?param1=param1&amp;param2=param2</a></p>
  
  <p>I tried to reproduce this with applying non utf-8 characters but could not reproduce. Please help me to reproduce this.
  sample urls I tested.</p>
  
  <p><a href="http://mydomain?param1=par%C3%83%C3%82am1&amp;param2=param2" rel="nofollow">http://mydomain?param1=parÃÂam1&amp;param2=param2</a></p>