Porting Base64 processing to java.util.Base64