added io and io.open to deal with encoding.  Appears to work