lib/standard: Update functions of Flat to use char-oriented semantics