title: Java: unwanted characters at the beginning of a file as result of serialization
body: <p>when I write a new text file in Java, I get these characters at the beginning of the file:</p>
  
  <pre><code>¨Ìt
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>public static void writeMAP(String filename, Object object) throws IOException {
      ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filename));
      oos.writeObject(object);
      oos.close();
  }
  </code></pre>
  
  <p>thanks</p>