utf-8 fix and downgrade to java 6