Essay encode

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