lib: Don’t try and treat a character literal as a string pointer

There is no way that’s going to give a valid address.
lib: Fix parsing of messages in comparison mode

This check was previously triggering parsing of a message as soon as the
first separator was encountered, at the end of the request. Message
parsing should only happen at the end of the response, so change the
check to use the state machine which already exists for this purpose.