fix error in omitting unkown characters