Replace deprecated strstream class.

This commit implements the fixed_streambuf class as a replacement for
strstream. fixed_streambuf is a safe implementation around
basic_streambuf and provides the needed functionality while preserving
the performance strstream provides.