Update symbolic_expression.cc

'Segment Fault' arises when '\n' is the delimiting character. Note that the delimiting character ('\n') is discarded and not written to buf when the function getline is called at line 79. And a null character ('\0') is automatically appended to buf. So I think the delimiting character should be '\0'