Handle invalid strings from game scripts more leniently