Fixed some encoding issues with term and ansi-term modes.
Enabled semantic mode by default.