Updated pageToString, which was still using the old metadata format