A C# port of the Financial Times String Compression algorithm. Originally at https://gist.github.com/morganestes/4661296.