cli: added --encoding option