fs_utils: exception safety in utility functions (TRIVIAL)