vim: default to ascii encoding
Add explicit constraint to custom_printf (fix #307)