Is there an easy way to avoid dealing with text encoding problems?
commons-io 2.0 has WriterOutputStream