tools/smaz: add support for base-64 variant