Add factory method for malformed messages