filtermodkick should be defined in the settings array instead of reg.
send_backup() decrypts the notes if MSGENCRYPTED is enabled. So, re-encrypt the notes on restore.