only set public_id as nonce if we didn't find a nonce in the file

also making sure it's encoded correctly
News for version 1.0.4d
bump versions