Read xml file with the problem of character and write in binary form unicode code - readable in browser