def encode_fs_path(path):
  return smart_str(path, HDFS_ENCODING, errors='strict')
encode_fs_path(path) -> byte string in utf8
dataset/ETHPy150Open cloudera/hue/desktop/libs/hadoop/src/hadoop/fs/hadoopfs.py/encode_fs_path