Added batch-size command line option, fixed handling of utf-8 ecoded content