title: BufferedWriter doesnt write JSON String correctly
body: <p>I wrote a code that gets a JSON text from a website and formats it so it is easier to read. My problem with the code is:</p>
  
  <pre><code>public static void gsonFile(){
    try {
      re = new BufferedReader(new FileReader(dateiname));
      Gson gson = new GsonBuilder().setPrettyPrinting().create();
      JsonParser jp = new JsonParser();
      String uglyJSONString ="";
      uglyJSONString = re.readLine();
      JsonElement je = jp.parse(uglyJSONString);  
      String prettyJsonString = gson.toJson(je);
      System.out.println(prettyJsonString);
  
      wr = new BufferedWriter(new FileWriter(dateiname));
      wr.write(prettyJsonString);
  
      wr.close();
      re.close();
  
  } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
  }
  }
  </code></pre>
  
  <p>It correctly prints it into the console : <a href="http://imgur.com/B8MTlYW.png" rel="nofollow">http://imgur.com/B8MTlYW.png</a></p>
  
  <p>But in my txt file it looks like this: <a href="http://imgur.com/N8iN7dv.png" rel="nofollow">http://imgur.com/N8iN7dv.png</a></p>
  
  <p>What can I do so it correctly prints it into the file? (separated by new lines)</p>