Update to gesture.rb to make it work with Ruby 1.8

"String"[n] on Ruby 1.8 returns an integer (explained at http://stackoverflow.com/questions/2730854/ruby-how-to-get-the-first-character-of-a-string)