Fix Transformer.parse for Ruby 1.8

In Ruby 1.8 `String#[]` returns the character's code and must be converted with `#chr` first.

Although Ruby 1.8 almost reached its end-of-life, I think the fix is too simple to not apply it.