`re.sub()` only supports flags argument since 2.7, so i think we can't pass `re.UNICODE` as it is done here in versions < 2.7