Specify encoding in remainining instances of io.open