Adding java.version variable and utf-8 encoding