Throw an exception if an unterminated substitution expression found (REnamer, bc345ad)
This brings us into line with the behaviour of Perl, which will emit a "Substitution replacement not terminated at line x" message in such a case.
Signed-off-by: Greg Hurrell <greg@hurrell.net>