public void putString(ByteBuffer b, String fullString) {
		if(b == null)
			throw new IllegalArgumentException("Cannot pass in a null buffer");
		else if(fullString == null)
			throw new IllegalArgumentException("Cannot pass in a null string");
		byte[] encodedString;
		try {
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			OutputStreamWriter writer = new OutputStreamWriter(out);
			writer.write(fullString);
			writer.flush();
			encodedString = out.toByteArray();
		} catch(IOException e) {
			throw new RuntimeException("Should never happen", e);
		}

		if (log.isLoggable(Level.FINEST)) {
			log.finest("1byteBuf pos="+b.position()+"  lim="+b.limit()+"  remain="+b.remaining());
		}
		b.put(encodedString);
		
		if (log.isLoggable(Level.FINEST)) {
			log.finest("1byteBuf pos="+b.position()+"  lim="+b.limit()+"  remain="+b.remaining());
		}		
	}