rewritten in Go language

added new -utf8 cmdline flag