Standalone version of git's strbuf | Hacker News Reader