Configure project for Gradle build system.
Fix unmappable UTF-8 characters.