Remove log files and change encoding