UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 7736: character maps to `<undefined>`

```py
def ReadAllText(path):
    r = open(path.replace("\\x", "%"))
    text = r.read()
    r.close()
    return text

```

Someone can help me with this?