Fix Ruby 1.8 compatibility with hash syntax

Fixes Ruby 1.8 incompatibility in latest 1.8.0 release (actually appears to have been in 1.7.0 too, but no gem was released.)