added delte-all function to get rid of non-encodable characters