title: "Cannot decode string with wide characters" appears on a weird place
body: <p>I am trying to use XML::RAI perl module on UTF8 coded text and I still have error I don't really understand... here is the code (it shouldn't do anything useful yet):</p>
  
  <pre><code>use HTTP::Request;
  use LWP::UserAgent;
  use XML::RAI;
  use Encode;
  
  my $ua = LWP::UserAgent-&gt;new;
  
  
  sub readFromWeb{
      my $address = shift;
      my $request = HTTP::Request-&gt;new( GET =&gt; $address );
      my $response = $ua-&gt;request( $request );
      return unless $response-&gt;code == 200;
  
      return decode("utf8", $response-&gt;content());
  }
  
  sub readFromRSS{
      my $address=shift;
      my $content = readFromWeb $address;
      my $rai = XML::RAI-&gt;parse_string($content);
            #this line "causes" the error
  }
  
  
  readFromRSS("http://aktualne.centrum.cz/export/rss-hp.phtml");
       #I am testing it on this particular RSS
  </code></pre>
  
  <p>the error is:</p>
  
  <pre><code> Cannot decode string with wide characters at /usr/lib/perl5/5.8.8/i686-linux/Encode.pm line 166.
  </code></pre>
  
  <p>I don't have a clue if that's my fault or the fault of XML::RAI. I don't see where these wide characters can be, if $content is already decoded from utf8...</p>
  
  <p>edit: for some reason I still don't understand, removing the "decode" part actually solved the problem.</p>