regtest: separate flags for encoding and decoding