Fix a number of issues with MobileOrg encryption.