platform mag: wrong encoding fix