Generic.get_beef. Fix encode method. See merge request !3687 (cherry picked from commit 9379c65b) 96e317ab Generic.get_beef. Fix encode method.