Two small patches for utf8 I/O.

Thanks to LRN <lrn1986@gmail.com>.
4 files changed