Fix LaTeX typography conversions in code

Thanks for catching these @mathiasbynens!