Assorted ruleset fixes

For user reported bugs.
Same question here. Why a negative lookahead exclusion rather than a positive assertion in the rewrite rule?