Handle console input encoding

And I'm always telling people there is no text without an encoding.