Fix unicode error and make cli interface much more fluent.