several fixes about command helps

- add help on command help
- add bold in do_help instead of get_command_help
- get_commands_doc() returns full help
fix encoding issue
Do not crash when repository is invalid

closes #1281