Fix: Fix some bug into script to detect bad utf8 and dos files