Fixed lexing of escaped characters in strings

The irb lexer would consume one two many characters for some input and
would duplicate some input.

Now it is corrected to only consume the characters in the escape and
to not duplicate the consumed characters.

Fixes #252