[fix] frappe.attach_print() - encode html if pdf printing is disabled and set file extn accordingly
Merge pull request #949 from anandpdoshi/anand-dec-15

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