Bash script to change encoding recursively