Generate type spec.
remove unicode.