If String#ord didn't exist in 1.9, it does in 2.0:

"A".ord #=> 65