change file encode to UTF-8 and add indent