improve handling of non ascii character after backslash on master

This pull request improves handling of non ascii character after backslash of `org.jruby.lexer.yacc.StringTerm` class on master.  This change fixes #1069 and #1390.