shell commands encoding fix