Utility functions for converting page data into a CSV