replace inventory that has invalid utf-8 chars