Remove some unused 'rec' flags.
Remove unused exceptions.
Escape newlines in string literals.