Accounted for stupid terminals passing in characters > 255.