Fix exception class names.
JRuby IO string encoding fix.