<p>Is there an easy way to avoid dealing with text encoding problems?</p>

The obvious names for these classes are ReaderInputStream and WriterOutputStream. Unfortunately these are not included in the Java library. However, google is your friend.
I'm not sure that it is going to get around all text encoding problems, which are nightmarish.
There is an RFE,
but it's Closed, will not fix.