Work around a bug in Ruby 2.2

Fixes #71.