Convert tabs to spaces
Fix error handling in fmt::fprintf.