This method should only dump to a string.  The user can write to a file if necessary.