renamed gets method to more transparent 'message_encoded'