formate code and change file encoding