Fix prompt in emacs ansi-term

Fixed strange characters printing after prompt while in emacs ansi-term,
which turn out to be control sequences for adjusting the window title.
See [Making Emacs ansi-term and zsh play nice together](http://blog.refu.co/?p=1277).