Fix bad backslashes in wordChars helpers

Issue #2721