gerda: Help message improvements

- add description;
- show help if no arguments provided;
- minor options parsing refactoring.
gerda: Output writing improvements

- fix python3 compatibility;
- encode to preferred encoding of current locale, ignoring errors.