added encoding to log4j