correct matching of \-escapes
permit trailing whitespace
tweak missing-slash messages