Fix encoding for ssh command