Fix ManagedAuthenticatedEncryptor not round-tripping payloads properly.
Fix %APPDATA% detection logic.
Merge branch 'release' into dev