libfoundation: Add accessors to add codepoints into strings.

It's sometimes useful to build a string by Unicode codepoint (for example when assembling a string with the output of an `MCTextFilter`).