Fixing string character ordinal access for 1.8/1.9/2.0

The previous patch used `#to_i` but `#ord` is actually needed to
properly coerce and to retain 1.8/1.9/2.0 compatibility.