UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-9: ordinal not in range(128)

Got this error while convert the data into tf records

root@08feea6f6414:/home/project/crane_detection# tlt-dataset-convert -d ‘/home/project/crane_detection/specs/tfspec.txt’ -o ‘/home/project/crane_detection/tfrecords’
Using TensorFlow backend.
2020-05-28 07:25:55,507 - iva.detectnet_v2.dataio.build_converter - INFO - Instantiating a kitti converter
2020-05-28 07:25:55,510 - iva.detectnet_v2.dataio.kitti_converter_lib - INFO - Num images in
Train: 684 Val: 170
2020-05-28 07:25:55,510 - iva.detectnet_v2.dataio.kitti_converter_lib - INFO - Validation data in partition 0. Hence, while choosing the validationset during training choose validation_fold 0.
2020-05-28 07:25:55,511 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 0
/usr/local/lib/python2.7/dist-packages/iva/detectnet_v2/dataio/kitti_converter_lib.py:266: VisibleDeprecationWarning: Reading unicode strings without specifying the encoding argument is deprecated. Set the encoding, use None for the system default.
2020-05-28 07:25:55,537 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 1
2020-05-28 07:25:55,556 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 2
2020-05-28 07:25:55,575 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 3
2020-05-28 07:25:55,594 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 4
2020-05-28 07:25:55,616 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 5
2020-05-28 07:25:55,635 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 6
2020-05-28 07:25:55,655 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 7
2020-05-28 07:25:55,675 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 8
2020-05-28 07:25:55,693 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 0, shard 9
2020-05-28 07:25:55,712 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO -
Wrote the following numbers of objects:
crane: 267

2020-05-28 07:25:55,712 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 1, shard 0
2020-05-28 07:25:55,788 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 1, shard 1
2020-05-28 07:25:55,861 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 1, shard 2
2020-05-28 07:25:55,939 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 1, shard 3
2020-05-28 07:25:56,016 - iva.detectnet_v2.dataio.dataset_converter_lib - INFO - Writing partition 1, shard 4
Traceback (most recent call last):
File “/usr/local/bin/tlt-dataset-convert”, line 8, in
sys.exit(main())
File “./detectnet_v2/scripts/dataset_convert.py”, line 64, in main
File “./detectnet_v2/dataio/dataset_converter_lib.py”, line 74, in convert
File “./detectnet_v2/dataio/dataset_converter_lib.py”, line 108, in _write_partitions
File “./detectnet_v2/dataio/dataset_converter_lib.py”, line 149, in _write_shard
File “./detectnet_v2/dataio/kitti_converter_lib.py”, line 169, in _create_example_proto
File “./detectnet_v2/dataio/kitti_converter_lib.py”, line 265, in _add_targets
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 6-9: ordinal not in range(128)

There should be something wrong in parts of your labels. Please double check.
Reference: https://stackoverflow.com/questions/9942594/unicodeencodeerror-ascii-codec-cant-encode-character-u-xa0-in-position-20