[doc] Force the output in stdout and files to utf-8
[cmake] Don't need anymore to do weird thing to force locale
[doc] Whitespace fixes in generate_doc tool