Fix error handling to match Ruby 2.0.0

Produces different exceptions and messages depending on the Ruby version, making
them identical to those produced by that version's eval and implicit string
conversion.
Fix encoding tests to match default encoding in Ruby 2.0.0
Update dependency on ruby_parser to 3.3.0