Fix submitting phrase form
Rename phrase toJSON to toEncryptedJSON