workaround case where the default encoding is not utf-8 - https://github.com/jruby/jruby/issues/2035
better exception handling for /maven/releases/rubygems or /maven/prereleases/rubygems directories
more license headers in xml used by tests
more input-stream cleanup - maybe avoid further Bad FileDescriptor Errors
Merge pull request #799 from mkristian/little-fixes

[rubygems] Little fixes