I'm getting an malformed utf8 when I try to convert an array to json, that happens when I have any accent like in this case André
Laravel transform the string into a binary string b"André"
in some part of the code
I dumped the attribute in many lines of the laravel framework
dump(\App\Vendasitem::where('codigovi', 112685)->first()->produto->nomeproduto);
and discovered that it happens inside of a pipeline right after the authenticate middleware