ensure a string doesnt throw a 500 (bug 789616)