Little bit of refactoring, term.write is sorta kinda supporting wide chars now.