Generic.get_beef. Fix encode method.

7 jobs for !3687 with fix-avs-get-beef-script in 22 minutes and 9 seconds (queued for 1 second)
merge request