Add validate_strictly to implement an improved version of write_union.
Fix exception class names.
JRuby IO string encoding fix.
Bump version
Add /pkg to gitignore
Gemfile.lock update