fixing charset encoding for forked JVM to ensure non ASCII characters are handled correctly