Fix loading of source encoding from Maven POM
Fix some quality flaws