Fix encoding in argparse Namespace.
Fix debug mode using env variable.