use File mode 'wb' instead of setting internal encoding to allow writing binary files in jruby -- doesn't appear to affect the rest of the specs