Fixed issue with writing encryption algorithm to options file incorrectly