add bom detect and resuce CharDet.detect
add bom_utils.rb
fix initialize of progresses because of emit order
fix: cd may be nil
add debug log
rescue IO.binread error
change test code