Unterminated string literal results in InvalidQueryException