char-at bound, error messages