Use --icode, --icode option to specify file/output encoding instead of -j.
Cleaning up the program.