[unicode] fix to ignore invalid-unicode