ioserv: Used stringstream instead of strdup and strchr.