Add unicode check
Copy encoding configuration of JavaCompile task to ScalaCompile