Added encoding to keychain parser