Use bytes for I/O, and encode any text.