title: MalformedInputException when trying to read entire file
body: <p>I have a 132 kb file (you can't really say it's big) and I'm trying to read it from the Scala REPL, but I can't read past 2048 char because it gives me a <code>java.nio.charset.MalformedInputException</code> exception</p>
  
  <p>These are the steps I take:</p>
  
  <pre><code>val it = scala.io.Source.fromFile("docs/categorizer/usig_calles.json") // this is ok
  it.take(2048).mkString // this is ok too
  it.take(1).mkString // BANG!
  
  java.nio.charset.MalformedInputException: Input length = 1
  at java.nio.charset.CoderResult.throwException(CoderResult.java:277)
  at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:338)
  at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
  at java.io.InputStreamReader.read(InputStreamReader.java:184)
  </code></pre>
  
  <p>Any idea what could be wrong?</p>
  
  <p>--</p>
  
  <p>Apparently the problem was that the file was not UTF encoded</p>
  
  <p>I saved it as UTF and everything works, I just issue mkString on the iterator and it retrieves the whole contents of the file</p>
  
  <p>The strange thing is that the error only aroused passing the first 2048 chars...</p>