Bug #2257: deterministic output for ruby 1.8.7