Set specialchar conditionally on whether options.smart.
Set specialchar conditionally on whether options.smart.

This improves performance quite a bit when smart extension
is not selected.

tst2005/lunamark,jgm/lunamark,jgm/lunamark,simoncozens/lunamark,tst2005/lunamark,tst2005/lunamark,simoncozens/lunamark,simoncozens/lunamark,jgm/lunamark