Add custom smartypants filter. Closes #391.