Make a string usable for io module.