Load upquote after fontenc in latex template.