Malformed UTF-8 in Lua errors breaks the menu Problems tab

Astralcircle reported that Lua errors with malformed data throw invalid UTF-8 code in markup.lua while the menu's Problems tab parses them. CornerPin could not reproduce it with error("\xF5") in any realm, and the issue was closed as not planned.