Encryption wrecks document info (Fixes #602)