[fix] frappe.attach_print() - encode html if pdf printing is disabled and set file extn accordingly