Essay encode

Fixed an (unreported) bug where equations that were not entered in math mode might not be displayed correctly because they weren't properly encoded.