That error occurs in my Laravel application in some Ajax requests, when the page is reloaded. Some requests fail and return the following response:
exception: "InvalidArgumentException"
file: "C:\wamp64\www\<my app directory>\vendor\laravel\framework\src\Illuminate\Http\JsonResponse.php"
line: 75
message: "Malformed UTF-8 characters, possibly incorrectly encoded"
What causes that error? How to fix it?