migrate from getopts to optparse
Migrate from csv.rb to FasterCSV.rb (new standardlib)
Open *.fmt and *.csv files in UTF-8.