Simple base conversion library.