Fix #1222, StringIO.gets w/ utf8