Javascript/java is changing my leading spaces to questiom marks : I am using this inside of a minecraft mod to read and write file and all the leading space are being converted to ? in the file.
**file input sample:**
{
   "ReturnToStart": "1b",
**file out put sample:**
{
???"ReturnToStart": "1b",

<!-- begin snippet: js hide: false console: true -->

<!-- language: lang-js -->

    //xxxxxxxxxxxxxxxxxxxxxxx
    var ips = new java.io.FileInputStream("ABC.json");
    var fileReader = new java.io.InputStreamReader(ips,"UTF-8");
    var data1 = fileReader.read();
    var data;
    var start1 = "";
    while(data1 != -1) {    
    data =  String.fromCharCode(data1);   
    start1 = start1+data;
    data1 = fileReader.read();
    }
    fileReader.close();
    var  fileWriter = new java.io.FileWriter("J_out2.txt");
    fileWriter.write(start1);
    fileWriter.close();


<!-- end snippet -->

