Support percents in snippets generator (closes #267)