[doc] Improve indentation used in doc generation
[cmake] Improve locale handling to build the doc

- define LC_ALL instead of LC_CTYPES
- use C.UTF-8 instead of en_US.UTF-8, which is more generic

Fix #302