find-script-command: Fix invalid UTF-8 error