hpac-encode now takes two args.