Fixed issue reported by sonar
Added missing Apache license claim to java sources
Use UTF-8 charset when logging message
Fixed sonar reported issues
Even better fix for sonar reported issue