Account for template encoding and fix Post tags