Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)