Convert ruby 1.8 hash syntax to 1.9