sprintf reduction

Where-ever possible sprintf will be replaced by io_string_write