Added a function to parse a messag string into an encrypted_msg struct