preserve leading zeroes when exporting private key to hex/wif

otherwise keys starting with a zero would end up having a
different address when imported somewhere else.