Fix #1222, StringIO.gets w/ utf8
Merge pull request #1300 from dragonsinth/scottb/1222

Fix #1222, StringIO.gets w/ utf8