Fix CLI errors

Fix gen_alphanumeric call on cli.facory module
Make strings unicode when formatting with unicode arguments
Merge pull request #1484 from elyezer/fix-cli-tests

Fix CLI errors