Fix exception handling (again).

Found by Coverity.
Remove needless instanceof check.

Found by Coverity.
Fix copy/paste bug in debug output.

Found by Coverity.
Remove unused variable, just skip the bytes in reading.

Found by Coverity.
Clean-up reading by using readString().

Found by Coverity.
Remove windows drive and update path.

Found by coverity.
Use readString() instead of reading bytes and converting.

Found by Coverity.
Handle bad group name.

Found by Coverity.
Make some inner classes static.

Found by Coverity.