fixed unterminated string parsing