Fix Transformer.parse for Ruby 1.8

In Ruby 1.8 `String#[]` returns the character's code and must be
converted with `#chr` first.