libslc: Overhaul of formatted IO