Base converter that can convert to and from any base.