adding sourceCompatibility and encoding config to build.gradle

Are we ok with `Java 8` and `UTF-8`?