Do not log encoding when non-project task
Fix some quality flaws