change link grammar to support special characters