Allow specification of encoding, add pom.xml for maven.