Make Gemfile compatible with Ruby 1.8
Enable providing a file as body.
Fix 1.8 hash syntax.
Work around 1.8.7 file api differences.
Fix again 1.8.7 file api issues.
Issue #50 - remove nul escaping from a bunch of set_option calls.