Make overwrite use self.writer instead of sys.stdout

This handles Unicode encoding stuff using py.io.TerminalWriter, which
handles Python 2 and Python 3 seamlessly.