Fix handling of re.DOTALL