code: public static void checkCharacters(CharSequence str, int off, int end) throws IOException {
  		while(off < end) checkCharacter(str.charAt(off++));
  	}
docs: Checks a set of characters, throws IOException if invalid