Merlin_lexer: signal EOF even if lexer ended up failing
Add explicit constraint to custom_printf (fix #307)
vim: use buffer encoding to interpret content