we also encrypt/decrypt files in the versions folder

we also encrypt/decrypt files in the versions folder for previews and if encryption is enabled/disabled.

This fixes the preview creation for versions if encryption is enabled.