This error occurs when a file or string that is being decoded using the UTF-8 encoding contains an invalid byte sequence.
This error is raised when trying to encode a Unicode string using the ASCII codec, and the string contains a character that is not within the ASCII range (0-127).