The logic in smart_str_append_escaped() relies on unsigned values of c, so we have to declare it as such.