Fix #88

Uses implicit codec to correct invalid characters in input files.
Fix #90

Put ELIDED_TAG if the type is indeed elided.