Encode the command using the file system encoding.