Add UNICODE flag to re.compile() in text tokenization