suppress warning for string index out of bound which happens during rare cases (with weird encoding in files)
cleanups