Use apache commons stuff instead of our crazy utils. Create some buf classes.