fix template encoding in loads/edit_form