fixed handling of RFC4648 Base64 encoded text