[base] bse64 encoder

Really slow implementation.  Speed up on a rainy day.