improve handling of non ascii character after backslash

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