Get first character in a way that will work in Ruby 1.8 and 1.9