Ruby 1.8.7 compatibility

Symbol doesn't have capitalize method defined in Ruby 1.8.7
Merge pull request #8 from voxik/ruby187

Ruby 1.8.7 compatibility