SCP: Fixed expect match checking when testing regular expressions to avoid NUL bytes in the output stream.

This is necessary since the RegEx api only takes simple C NUL terminated strings.