local: Replace invalid UTF-8 data from library