fix utf8 encoding in python template + improve support for help2man