Render using a cStringIO buffer if [Genshi 804] is available, as this is more memory efficient.
The rendering done without a cStringIO can be removed once we depend on Genshi 0.5. We might want to re-add it in the future once we get rid of our memory issues, as using the cStringIO way seems to be a bit slower.