Encoding fixes.
Linux (or newer Java version?) compatibility.
Makefile and runscript.