Update encoder.sh

Fixed loop dying after handbrake ran.