Defensive code additions for sanity checks on input arguments with Base64, PEM write, mp_read_unsigned_bin