The Universe as an Error-Correcting Code