Fixed bash script (no need for encoding patch).