Added utility for serializing object to human-readable form